#有yaml文件数据，读取yaml文件数据 pip install pyyaml
import yaml

# 测试用例中拿到yaml测试数据
def readYaml(filename):
    with open(filename, encoding='utf-8') as f:
        data = yaml.safe_load(f)
        # print(data)
    return data

if __name__ == '__main__':
    data = readYaml(r'D:\20250402开始学习华测教育\Now Test\Appium-Python-Client\AppPom\day12\data\login.yaml')
    print(data)
